package com.example.mydy;
import com.example.mydy.model.Advertisement;

import com.example.mydy.api.UserApi;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
public interface ApiService {
    @POST("api/register")
    Call<Void> registerUser(@Body User user);

    @POST("api/login")
    Call<LoginResponse> loginUser(@Body LoginRequest request);

    @GET("user/info")
    Call<com.example.mydy.model.User> getUserInfo();

    @GET("users")
    Call<List<User>> getUsers();

    @GET("advertisements")
    Call<List<Advertisement>> getAdvertisements();

    @GET("tasks/reward")
    Call<Reward> getTaskReward();

    @GET("tasks/user/status")
    Call<TaskStatus> getTaskStatus();

    @GET("api/logs/{type}")
    Call<LogData> getLogsByType(@Path("type") String type);

    @GET("api/logs/stats/summary")
    Call<LogStats> getLogStats();

    @GET("health")
    Call<HealthStatus> checkHealth();
}